tests/basic: Fix race in timestamp test
authorColin Walters <walters@verbum.org>
Fri, 4 Mar 2016 15:53:47 +0000 (10:53 -0500)
committerColin Walters <walters@verbum.org>
Fri, 4 Mar 2016 15:53:47 +0000 (10:53 -0500)
commite2234e854d1900f02064d35351b331861278b6e2
treeec5de04516c9c604ee7f184a0280d88360479ae1
parentfea786cb2d086865d83797c842d89b7352b27527
tests/basic: Fix race in timestamp test

%Z only uses seconds, so it's possible that we did the commit
in the same second, which made this test racy.

- Switch to full nanosecond precision using '%.Y' so it always differs
- Fix the inverted `cmp` usage
- Add a missing `ok`
tests/basic-test.sh